package com.dt.dubai.mber.service;

import com.dt.dubai.mber.entity.MberCustomerLoginEntity;
import com.dt.dubai.mber.service.innate.MberCustomerLoginSerInnateAbsImp;
import com.dt.dubai.mber.service.ser.MberCustomerLoginService;
import org.springframework.stereotype.Service;

@Service
public class MberCustomerLoginServiceImp extends MberCustomerLoginSerInnateAbsImp implements MberCustomerLoginService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(MberCustomerLoginEntity inEntity) {

    }

    @Override
    protected void userModEntity(MberCustomerLoginEntity inEntity, MberCustomerLoginEntity upEntity) {
        upEntity.setMobilePhone(inEntity.getMobilePhone()); // 手机号码
        upEntity.setWeixinUnionid(inEntity.getWeixinUnionid()); // 微信用户标识ID
        upEntity.setWeixinOpenid(inEntity.getWeixinOpenid()); // 微信公众号ID
        upEntity.setWeiappOpenid(inEntity.getWeiappOpenid()); // 微信小程序ID
        upEntity.setNickNameZh(inEntity.getNickNameZh()); // 昵称
        upEntity.setPwd(inEntity.getPwd()); // 密码
        upEntity.setSalt(inEntity.getSalt()); // 盐
        upEntity.setSex(inEntity.getSex()); // 性别
        upEntity.setCustomerIconRul(inEntity.getCustomerIconRul()); // 头像地址
        upEntity.setLoginStatus(inEntity.getLoginStatus()); // 状态
        upEntity.setRealNameStatus(inEntity.getRealNameStatus()); // 实名状态
        upEntity.setLoginIpAddr(inEntity.getLoginIpAddr()); // 登录IP
        upEntity.setLoginTime(inEntity.getLoginTime()); // 登录时间

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
